package util;

import java.util.Map;

public class StaticMessageUtil {

    public  void welcome(){

        System.out.println(" ._______________________   ____________  ______  ._______________   ");
        System.out.println(" |   \\_   _____/\\_   ___ \\ /  _____/_   |/  __  \\ |   ____/\\   _  \\  ");
        System.out.println(" |   ||    __)_ /    \\  \\//   __  \\ |   |>      < |____  \\ /  /_\\  \\ ");
        System.out.println(" |   ||        \\\\     \\___\\  |__\\  \\|   /   --   \\/       \\\\  \\_/   \\");
        System.out.println(" |___/_______  / \\______  /\\_____  /|___\\______  /______  / \\_____  /");
        System.out.println("             \\/         \\/       \\/            \\/       \\/        \\/ ");
        System.out.println();
    }

    public void helpMessage(Map<String, String> caseList){
        System.out.println("--------------------------------------------------------------------");
        System.out.println("----------------------IEC61850 Auto Test----------------------------");
        System.out.println("--------------------------------------------------------------------");
        for(String id:caseList.keySet()){
            System.out.println("TestCase [" + id +"] : " + caseList.get(id));
        }
        System.out.println("--------------------------------------------------------------------");
    }

    public void ResultPrint(Map<String, String> caseList, Map<String, String> resultsList){
        System.out.println("--------------------------------------------------------------------");
        System.out.println("|-----------------IEC61850 Auto Test Result------------------------|");
        System.out.println("|------------------------------------------------------------------|");
        for(String id:resultsList.keySet()){
            System.out.printf("|%s|%5s|\n",caseList.get(id),resultsList.get(id));

        }
        System.out.println("|------------------------------------------------------------------|");
        System.out.println("--------------------------------------------------------------------");
        System.out.println();

    }
}
